package cn.echo.ecc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseOrderDto {

    @NotNull(message = "参数不能为空")
    private Integer payType;

    @NotNull(message = "参数不能为空")
    private String token;

    @NotEmpty(message = "参数不能为空")
    private List<Long> courseIds;

    @NotNull(message = "参数不能为空")
    private Integer type;
}
